package com.yuexinduo.education.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.yuexinduo.baselibrary.base.BaseMvpFragment;
import com.yuexinduo.education.R;
import com.yuexinduo.education.ui.BranchDetailsActivity;

public class BranchFragment extends BaseMvpFragment {
    private ImageView searchImg;
    private EditText search;
    private ImageView homeMine;
    @Override
    public boolean isLazyLoad() {
        return false;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        homeMine.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), BranchDetailsActivity.class));
            }
        });
    }

    @Override
    protected int bindLayout() {
        return R.layout.fragment_branch;
    }

    @Override
    protected void initView() {


        searchImg = (ImageView) containerView.findViewById(R.id.search_img);
        search = (EditText) containerView.findViewById(R.id.search);
        homeMine = (ImageView) containerView.findViewById(R.id.home_mine);

    }

    @Override
    protected void initData() {

    }
}
